package ioc;

/**
 * @program: spring-demo1
 * @author: JCM
 * @create: 2023-06-11 13:00
 * @description:
 **/
public class Bottom {
    private Tire tire;

    public Bottom(ioc.Tire tire) {
        this.tire = tire;
    }

    public void init() {
        // 依赖于轮胎
        System.out.println("底盘");
        tire.init();
    }
}
